.class public abstract Lkairo/android/ui/IApplication;
.super Landroid/app/Activity;

# interfaces
.implements Ljava/lang/Runnable;


# static fields
.field protected static d:Ljava/lang/String;

.field private static h:Lkairo/android/ui/IApplication;

.field private static n:Ljava/util/Vector;

.field private static o:I

.field private static p:I


# instance fields
.field protected a:Landroid/os/Handler;

.field protected b:I

.field protected c:I

.field protected e:Z

.field protected f:Z

.field protected g:Lkairo/android/ui/q;

.field private i:Landroid/util/DisplayMetrics;

.field private j:I

.field private k:Ljava/lang/Thread;

.field private l:Z

.field private m:Landroid/content/BroadcastReceiver;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    const/4 v1, -0x1

    const/4 v0, 0x0

    sput-object v0, Lkairo/android/ui/IApplication;->d:Ljava/lang/String;

    new-instance v0, Ljava/util/Vector;

    invoke-direct {v0}, Ljava/util/Vector;-><init>()V

    sput-object v0, Lkairo/android/ui/IApplication;->n:Ljava/util/Vector;

    sput v1, Lkairo/android/ui/IApplication;->o:I

    sput v1, Lkairo/android/ui/IApplication;->p:I

    return-void
.end method

.method protected constructor <init>()V
    .locals 1

    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lkairo/android/ui/IApplication;->a:Landroid/os/Handler;

    new-instance v0, Landroid/util/DisplayMetrics;

    invoke-direct {v0}, Landroid/util/DisplayMetrics;-><init>()V

    iput-object v0, p0, Lkairo/android/ui/IApplication;->i:Landroid/util/DisplayMetrics;

    const/4 v0, 0x1

    iput-boolean v0, p0, Lkairo/android/ui/IApplication;->l:Z

    new-instance v0, Lkairo/android/ui/p;

    invoke-direct {v0, p0}, Lkairo/android/ui/p;-><init>(Lkairo/android/ui/IApplication;)V

    iput-object v0, p0, Lkairo/android/ui/IApplication;->m:Landroid/content/BroadcastReceiver;

    return-void
.end method

.method public static a(Ljava/lang/String;)Ljava/lang/String;
    .locals 1

    const-string v0, "microedition.platform"

    invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string p0, "Platform"

    :cond_0
    const-string v0, "Platform"

    invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    sget-object v0, Lkairo/android/ui/IApplication;->d:Ljava/lang/String;

    :goto_0
    return-object v0

    :cond_1
    invoke-static {p0}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public static a()Lkairo/android/ui/IApplication;
    .locals 1

    sget-object v0, Lkairo/android/ui/IApplication;->h:Lkairo/android/ui/IApplication;

    return-object v0
.end method

.method protected static a(Lkairo/android/ui/IApplication;)V
    .locals 0

    sput-object p0, Lkairo/android/ui/IApplication;->h:Lkairo/android/ui/IApplication;

    return-void
.end method

.method public static b(I)V
    .locals 11

    invoke-static {}, Lkairo/android/ui/a;->a()Lkairo/android/ui/a;

    move-result-object v2

    invoke-virtual {v2}, Lkairo/android/ui/a;->p()Lkairo/android/h/e;

    move-result-object v3

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    :goto_0
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    sub-long/2addr v0, v4

    int-to-long v6, p0

    cmp-long v0, v0, v6

    if-gtz v0, :cond_7

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v6

    if-eqz v3, :cond_0

    const/4 v0, 0x1

    :try_start_0
    invoke-virtual {v3, v0}, Lkairo/android/h/e;->a(Z)V

    :cond_0
    if-eqz v3, :cond_1

    invoke-virtual {v3}, Lkairo/android/h/e;->b()V
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_1

    :cond_1
    const/4 v0, 0x0

    :try_start_1
    invoke-virtual {v2}, Lkairo/android/ui/a;->b()Lkairo/android/ui/o;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    move-result-object v0

    if-eqz v0, :cond_3

    :try_start_2
    invoke-virtual {v3, v0}, Lkairo/android/h/e;->a(Lkairo/android/ui/o;)V

    invoke-virtual {v3, v0}, Lkairo/android/h/e;->b(Lkairo/android/ui/o;)V

    sget-object v1, Lkairo/android/ui/IApplication;->h:Lkairo/android/ui/IApplication;

    invoke-virtual {v1}, Lkairo/android/ui/IApplication;->q()Lkairo/android/a/b;

    move-result-object v1

    if-eqz v1, :cond_2

    invoke-virtual {v1}, Lkairo/android/a/b;->i()V

    :cond_2
    if-eqz v3, :cond_3

    invoke-virtual {v3, v0}, Lkairo/android/h/e;->c(Lkairo/android/ui/o;)V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    :cond_3
    if-eqz v0, :cond_4

    :try_start_3
    invoke-virtual {v2}, Lkairo/android/ui/a;->d()V
    :try_end_3
    .catch Ljava/lang/Throwable; {:try_start_3 .. :try_end_3} :catch_1

    :cond_4
    :goto_1
    const-wide/16 v0, 0x32

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v8

    sub-long v6, v8, v6

    sub-long/2addr v0, v6

    const-wide/16 v6, 0x0

    cmp-long v6, v0, v6

    if-ltz v6, :cond_5

    :try_start_4
    invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V
    :try_end_4
    .catch Ljava/lang/InterruptedException; {:try_start_4 .. :try_end_4} :catch_2

    :cond_5
    :goto_2
    invoke-static {}, Ljava/lang/Thread;->yield()V

    goto :goto_0

    :catch_0
    move-exception v1

    if-eqz v0, :cond_4

    :try_start_5
    invoke-virtual {v2}, Lkairo/android/ui/a;->d()V
    :try_end_5
    .catch Ljava/lang/Throwable; {:try_start_5 .. :try_end_5} :catch_1

    goto :goto_1

    :catch_1
    move-exception v0

    invoke-virtual {v2}, Lkairo/android/ui/a;->c()V

    goto :goto_1

    :catchall_0
    move-exception v1

    move-object v10, v1

    move-object v1, v0

    move-object v0, v10

    :goto_3
    if-eqz v1, :cond_6

    :try_start_6
    invoke-virtual {v2}, Lkairo/android/ui/a;->d()V

    :cond_6
    throw v0
    :try_end_6
    .catch Ljava/lang/Throwable; {:try_start_6 .. :try_end_6} :catch_1

    :catch_2
    move-exception v0

    goto :goto_2

    :cond_7
    return-void

    :catchall_1
    move-exception v1

    move-object v10, v1

    move-object v1, v0

    move-object v0, v10

    goto :goto_3
.end method


# virtual methods
.method public final a(I)V
    .locals 3

    const/4 v2, 0x0

    const/4 v0, -0x1

    if-ne p1, v0, :cond_0

    invoke-virtual {p0, v0}, Lkairo/android/ui/IApplication;->setRequestedOrientation(I)V

    :goto_0
    return-void

    :cond_0
    invoke-virtual {p0}, Lkairo/android/ui/IApplication;->k()Z

    move-result v0

    if-nez v0, :cond_1

    invoke-virtual {p0}, Lkairo/android/ui/IApplication;->l()I

    move-result v0

    :goto_1
    invoke-virtual {p0}, Lkairo/android/ui/IApplication;->k()Z

    move-result v1

    if-nez v1, :cond_2

    invoke-virtual {p0}, Lkairo/android/ui/IApplication;->m()I

    move-result v1

    :goto_2
    if-gt v0, v1, :cond_3

    rem-int/lit8 v0, p1, 0x2

    if-eqz v0, :cond_4

    invoke-virtual {p0, v2}, Lkairo/android/ui/IApplication;->setRequestedOrientation(I)V

    goto :goto_0

    :cond_1
    invoke-virtual {p0}, Lkairo/android/ui/IApplication;->m()I

    move-result v0

    goto :goto_1

    :cond_2
    invoke-virtual {p0}, Lkairo/android/ui/IApplication;->l()I

    move-result v1

    goto :goto_2

    :cond_3
    rem-int/lit8 v0, p1, 0x2

    if-nez v0, :cond_4

    invoke-virtual {p0, v2}, Lkairo/android/ui/IApplication;->setRequestedOrientation(I)V

    goto :goto_0

    :cond_4
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lkairo/android/ui/IApplication;->setRequestedOrientation(I)V

    goto :goto_0
.end method

.method public final a(Z)V
    .locals 0

    iput-boolean p1, p0, Lkairo/android/ui/IApplication;->l:Z

    return-void
.end method

.method public final b()V
    .locals 1

    iget-boolean v0, p0, Lkairo/android/ui/IApplication;->e:Z

    if-eqz v0, :cond_0

    :goto_0
    return-void

    :cond_0
    const/4 v0, 0x1

    iput-boolean v0, p0, Lkairo/android/ui/IApplication;->e:Z

    :try_start_0
    iget-object v0, p0, Lkairo/android/ui/IApplication;->k:Ljava/lang/Thread;

    invoke-virtual {v0}, Ljava/lang/Thread;->interrupt()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_1
    const/4 v0, 0x0

    iput-object v0, p0, Lkairo/android/ui/IApplication;->k:Ljava/lang/Thread;

    invoke-virtual {p0}, Lkairo/android/ui/IApplication;->finish()V

    goto :goto_0

    :catch_0
    move-exception v0

    goto :goto_1
.end method

.method protected abstract c()V
.end method

.method public abstract d()V
.end method

.method public dispatchKeyEvent(Landroid/view/KeyEvent;)Z
    .locals 5

    const/16 v3, 0x52

    const/4 v0, 0x1

    invoke-virtual {p1}, Landroid/view/KeyEvent;->getAction()I

    move-result v1

    if-nez v1, :cond_0

    invoke-virtual {p1}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v1

    if-nez v1, :cond_0

    invoke-static {}, Lkairo/android/ui/a;->a()Lkairo/android/ui/a;

    move-result-object v1

    invoke-virtual {p1}, Landroid/view/KeyEvent;->getKeyCode()I

    move-result v2

    packed-switch v2, :pswitch_data_0

    :cond_0
    invoke-virtual {p1}, Landroid/view/KeyEvent;->getKeyCode()I

    move-result v0

    if-ne v0, v3, :cond_1

    iget-boolean v0, p0, Lkairo/android/ui/IApplication;->e:Z

    if-nez v0, :cond_1

    invoke-virtual {p0, v3, p1}, Lkairo/android/ui/IApplication;->onKeyDown(ILandroid/view/KeyEvent;)Z

    :cond_1
    invoke-super {p0, p1}, Landroid/app/Activity;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z

    move-result v0

    :cond_2
    :goto_0
    return v0

    :pswitch_0
    iget-boolean v2, p0, Lkairo/android/ui/IApplication;->e:Z

    if-nez v2, :cond_2

    invoke-virtual {v1}, Lkairo/android/ui/a;->e()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1}, Lkairo/android/ui/a;->f()Ljava/lang/String;

    move-result-object v3

    if-eqz v2, :cond_4

    const-string v4, "\u623b\u308b"

    invoke-virtual {v2, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_3

    const-string v4, "Back"

    invoke-virtual {v2, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_4

    :cond_3
    const/high16 v2, 0x200000

    invoke-virtual {v1, v2}, Lkairo/android/ui/a;->d(I)V

    goto :goto_0

    :cond_4
    if-eqz v3, :cond_6

    const-string v2, "\u623b\u308b"

    invoke-virtual {v3, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_5

    const-string v2, "Back"

    invoke-virtual {v3, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_6

    :cond_5
    const/high16 v2, 0x400000

    invoke-virtual {v1, v2}, Lkairo/android/ui/a;->d(I)V

    goto :goto_0

    :cond_6
    invoke-virtual {p0}, Lkairo/android/ui/IApplication;->q()Lkairo/android/a/b;

    move-result-object v1

    if-eqz v1, :cond_2

    invoke-virtual {p0}, Lkairo/android/ui/IApplication;->q()Lkairo/android/a/b;

    move-result-object v1

    invoke-virtual {v1}, Lkairo/android/a/b;->n()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x4
        :pswitch_0
    .end packed-switch
.end method

.method public final e()I
    .locals 6

    const-string v0, "window"

    invoke-virtual {p0, v0}, Lkairo/android/ui/IApplication;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/WindowManager;

    invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Display;->getWidth()I

    move-result v2

    invoke-virtual {v0}, Landroid/view/Display;->getHeight()I

    move-result v1

    invoke-virtual {p0}, Lkairo/android/ui/IApplication;->s()I

    move-result v3

    if-lez v3, :cond_1

    :try_start_0
    const-class v3, Landroid/view/Display;

    const-string v4, "getRawHeight"

    const/4 v5, 0x0

    new-array v5, v5, [Ljava/lang/Class;

    invoke-virtual {v3, v4, v5}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v3

    const/4 v4, 0x0

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v3, v0, v4}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    invoke-virtual {p0}, Lkairo/android/ui/IApplication;->s()I
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    move-result v1

    sub-int/2addr v0, v1

    :goto_0
    if-ge v2, v0, :cond_0

    mul-int/lit8 v0, v2, 0x64

    div-int/lit16 v0, v0, 0xf0

    :goto_1
    return v0

    :catch_0
    move-exception v0

    invoke-virtual {p0}, Lkairo/android/ui/IApplication;->s()I

    move-result v0

    sub-int v0, v1, v0

    goto :goto_0

    :cond_0
    mul-int/lit8 v0, v0, 0x64

    div-int/lit16 v0, v0, 0xf0

    goto :goto_1

    :cond_1
    move v0, v1

    goto :goto_0
.end method

.method public final f()Landroid/os/Handler;
    .locals 1

    iget-object v0, p0, Lkairo/android/ui/IApplication;->a:Landroid/os/Handler;

    return-object v0
.end method

.method public final g()I
    .locals 1

    iget v0, p0, Lkairo/android/ui/IApplication;->b:I

    return v0
.end method

.method public getSystemService(Ljava/lang/String;)Ljava/lang/Object;
    .locals 5

    const/4 v4, 0x1

    const/4 v3, 0x0

    const-string v0, "window"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string v0, "search"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    invoke-super {p0, p1}, Landroid/app/Activity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_1
    move v2, v3

    :goto_1
    sget-object v0, Lkairo/android/ui/IApplication;->n:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v0

    if-ge v2, v0, :cond_3

    sget-object v0, Lkairo/android/ui/IApplication;->n:Ljava/util/Vector;

    invoke-virtual {v0, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [Ljava/lang/Object;

    aget-object v1, v0, v3

    check-cast v1, Ljava/lang/String;

    invoke-virtual {v1, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    aget-object v0, v0, v4

    goto :goto_0

    :cond_2
    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_1

    :cond_3
    invoke-super {p0, p1}, Landroid/app/Activity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    sget-object v1, Lkairo/android/ui/IApplication;->n:Ljava/util/Vector;

    const/4 v2, 0x2

    new-array v2, v2, [Ljava/lang/Object;

    aput-object p1, v2, v3

    aput-object v0, v2, v4

    invoke-virtual {v1, v2}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    goto :goto_0
.end method

.method public final h()Z
    .locals 2

    iget v0, p0, Lkairo/android/ui/IApplication;->c:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final i()Z
    .locals 1

    iget-boolean v0, p0, Lkairo/android/ui/IApplication;->e:Z

    return v0
.end method

.method public final j()Z
    .locals 1

    iget-boolean v0, p0, Lkairo/android/ui/IApplication;->f:Z

    return v0
.end method

.method public final k()Z
    .locals 2

    const/4 v1, 0x1

    const-string v0, "window"

    invoke-virtual {p0, v0}, Lkairo/android/ui/IApplication;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/WindowManager;

    invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Display;->getOrientation()I

    move-result v0

    rem-int/lit8 v0, v0, 0x2

    if-ne v0, v1, :cond_0

    move v0, v1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final l()I
    .locals 2

    const-string v0, "window"

    invoke-virtual {p0, v0}, Lkairo/android/ui/IApplication;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/WindowManager;

    invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    iget-object v1, p0, Lkairo/android/ui/IApplication;->i:Landroid/util/DisplayMetrics;

    invoke-virtual {v0, v1}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    iget-object v0, p0, Lkairo/android/ui/IApplication;->i:Landroid/util/DisplayMetrics;

    iget v0, v0, Landroid/util/DisplayMetrics;->widthPixels:I

    return v0
.end method

.method public final m()I
    .locals 4

    const-string v0, "window"

    invoke-virtual {p0, v0}, Lkairo/android/ui/IApplication;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/WindowManager;

    invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v1

    invoke-virtual {p0}, Lkairo/android/ui/IApplication;->s()I

    move-result v0

    if-lez v0, :cond_0

    :try_start_0
    const-class v0, Landroid/view/Display;

    const-string v2, "getRawHeight"

    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Class;

    invoke-virtual {v0, v2, v3}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v0

    const/4 v2, 0x0

    new-array v2, v2, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    move-result v0

    :goto_0
    return v0

    :catch_0
    move-exception v0

    :cond_0
    iget-object v0, p0, Lkairo/android/ui/IApplication;->i:Landroid/util/DisplayMetrics;

    invoke-virtual {v1, v0}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    iget-object v0, p0, Lkairo/android/ui/IApplication;->i:Landroid/util/DisplayMetrics;

    iget v0, v0, Landroid/util/DisplayMetrics;->heightPixels:I

    goto :goto_0
.end method

.method public final n()I
    .locals 1

    const-string v0, "window"

    invoke-virtual {p0, v0}, Lkairo/android/ui/IApplication;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/WindowManager;

    invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Display;->getOrientation()I

    move-result v0

    return v0
.end method

.method public final o()Z
    .locals 2

    invoke-virtual {p0}, Lkairo/android/ui/IApplication;->getRequestedOrientation()I

    move-result v0

    const/4 v1, -0x1

    if-ne v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lkairo/android/ui/IApplication;->requestWindowFeature(I)Z

    invoke-static {}, Lkairo/android/ui/a;->a()Lkairo/android/ui/a;

    move-result-object v0

    invoke-virtual {v0, p0}, Lkairo/android/ui/a;->a(Lkairo/android/ui/IApplication;)V

    new-instance v0, Landroid/webkit/WebView;

    invoke-direct {v0, p0}, Landroid/webkit/WebView;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v0

    invoke-virtual {v0}, Landroid/webkit/WebSettings;->getUserAgentString()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lkairo/android/ui/IApplication;->d:Ljava/lang/String;

    invoke-virtual {p0}, Lkairo/android/ui/IApplication;->getRequestedOrientation()I

    move-result v0

    iput v0, p0, Lkairo/android/ui/IApplication;->j:I

    invoke-static {}, Lanalytics/a;->a()V

    new-instance v0, Ljava/lang/Thread;

    invoke-direct {v0, p0}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    iput-object v0, p0, Lkairo/android/ui/IApplication;->k:Ljava/lang/Thread;

    iget-object v0, p0, Lkairo/android/ui/IApplication;->k:Ljava/lang/Thread;

    const/16 v1, 0xa

    invoke-virtual {v0, v1}, Ljava/lang/Thread;->setPriority(I)V

    iget-object v0, p0, Lkairo/android/ui/IApplication;->k:Ljava/lang/Thread;

    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    return-void
.end method

.method protected onDestroy()V
    .locals 1

    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    invoke-static {}, Lanalytics/a;->b()V

    invoke-static {}, Landroid/os/Process;->myPid()I

    move-result v0

    invoke-static {v0}, Landroid/os/Process;->killProcess(I)V

    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2

    invoke-super {p0, p1, p2}, Landroid/app/Activity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v0

    invoke-static {}, Lkairo/android/ui/a;->a()Lkairo/android/ui/a;

    move-result-object v1

    invoke-virtual {v1, p1, p2}, Lkairo/android/ui/a;->onKeyDown(ILandroid/view/KeyEvent;)Z

    return v0
.end method

.method public onKeyUp(ILandroid/view/KeyEvent;)Z
    .locals 2

    invoke-super {p0, p1, p2}, Landroid/app/Activity;->onKeyUp(ILandroid/view/KeyEvent;)Z

    move-result v0

    invoke-static {}, Lkairo/android/ui/a;->a()Lkairo/android/ui/a;

    move-result-object v1

    invoke-virtual {v1, p1, p2}, Lkairo/android/ui/a;->onKeyUp(ILandroid/view/KeyEvent;)Z

    return v0
.end method

.method protected onPause()V
    .locals 1

    invoke-super {p0}, Landroid/app/Activity;->onPause()V

    const/4 v0, 0x0

    iput-object v0, p0, Lkairo/android/ui/IApplication;->g:Lkairo/android/ui/q;

    iget-object v0, p0, Lkairo/android/ui/IApplication;->m:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v0}, Lkairo/android/ui/IApplication;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    invoke-static {}, Lanalytics/a;->c()V

    return-void
.end method

.method protected onRestart()V
    .locals 1

    invoke-super {p0}, Landroid/app/Activity;->onRestart()V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lkairo/android/ui/IApplication;->f:Z

    return-void
.end method

.method protected onResume()V
    .locals 3

    invoke-super {p0}, Landroid/app/Activity;->onResume()V

    new-instance v0, Lkairo/android/ui/q;

    invoke-direct {v0, p0}, Lkairo/android/ui/q;-><init>(Lkairo/android/ui/IApplication;)V

    iput-object v0, p0, Lkairo/android/ui/IApplication;->g:Lkairo/android/ui/q;

    iget-object v0, p0, Lkairo/android/ui/IApplication;->g:Lkairo/android/ui/q;

    const-wide/16 v1, 0x0

    invoke-virtual {v0, v1, v2}, Lkairo/android/ui/q;->a(J)V

    new-instance v0, Landroid/content/IntentFilter;

    invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V

    const-string v1, "android.intent.action.BATTERY_CHANGED"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    iget-object v1, p0, Lkairo/android/ui/IApplication;->m:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v1, v0}, Lkairo/android/ui/IApplication;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    invoke-virtual {p0}, Lkairo/android/ui/IApplication;->d()V

    return-void
.end method

.method protected onStart()V
    .locals 1

    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lkairo/android/ui/IApplication;->f:Z

    return-void
.end method

.method protected onStop()V
    .locals 1

    invoke-super {p0}, Landroid/app/Activity;->onStop()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lkairo/android/ui/IApplication;->f:Z

    invoke-static {}, Lkairo/android/ui/z;->a()Lkairo/android/ui/z;

    move-result-object v0

    invoke-virtual {v0}, Lkairo/android/ui/z;->d()V

    return-void
.end method

.method public final p()V
    .locals 1

    iget v0, p0, Lkairo/android/ui/IApplication;->j:I

    invoke-virtual {p0, v0}, Lkairo/android/ui/IApplication;->setRequestedOrientation(I)V

    return-void
.end method

.method public abstract q()Lkairo/android/a/b;
.end method

.method public final r()Z
    .locals 1

    iget-boolean v0, p0, Lkairo/android/ui/IApplication;->l:Z

    return v0
.end method

.method public run()V
    .locals 0

    invoke-virtual {p0}, Lkairo/android/ui/IApplication;->c()V

    return-void
.end method

.method public final s()I
    .locals 5

    const/4 v4, -0x1

    const/4 v1, 0x1

    const/4 v2, 0x0

    sget v0, Lkairo/android/ui/IApplication;->p:I

    if-ne v0, v4, :cond_1

    sput v2, Lkairo/android/ui/IApplication;->p:I

    const/16 v0, 0xb

    sget v3, Landroid/os/Build$VERSION;->SDK_INT:I

    if-gt v0, v3, :cond_1

    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v3, 0xe

    if-ge v0, v3, :cond_1

    sget v0, Lkairo/android/ui/IApplication;->o:I

    if-ne v0, v4, :cond_0

    invoke-virtual {p0}, Lkairo/android/ui/IApplication;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v0

    iget v0, v0, Landroid/content/res/Configuration;->screenLayout:I

    and-int/lit8 v0, v0, 0xf

    const/4 v3, 0x3

    if-lt v0, v3, :cond_2

    move v0, v1

    :goto_0
    sput v0, Lkairo/android/ui/IApplication;->o:I

    :cond_0
    sget v0, Lkairo/android/ui/IApplication;->o:I

    if-ne v0, v1, :cond_3

    :goto_1
    if-eqz v1, :cond_1

    const/16 v0, 0x30

    sput v0, Lkairo/android/ui/IApplication;->p:I

    :cond_1
    sget v0, Lkairo/android/ui/IApplication;->p:I

    return v0

    :cond_2
    move v0, v2

    goto :goto_0

    :cond_3
    move v1, v2

    goto :goto_1
.end method
